<!DOCTYPE html>
<html lang="en">
{% load static %}
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <!-- 最新版本的 Bootstrap 核心 CSS 文件 -->
    <link rel="stylesheet" href="{% static 'bootstrap-3.4.1-dist/css/bootstrap.min.css' %}">

<body>
<div>
    <form method="post" style="width: 480px">
        {% csrf_token %}
        <div>{% if form_error %}
            <p style="color: red">{{ form_error }}</p>
        {% endif %} </div>
        <div class="form-group">
            <label for="">用户名</label>
            <input type="text" class="form-control" placeholder="输入用户名，不能是已存在的" name="username" id="id_username">
        </div>
        <div class="form-group">
            <label for="">密码</label>
            <input type="password" class="form-control" placeholder="输入密码" name="password" id="id_password">
        </div>

        <button type="submit" class="btn btn-success">添加</button>
    </form>
</div>
<script src="{% static 'bootstrap-3.4.1-dist/js/jquery-3.4.1.min.js' %}"></script>
<script src="{% static 'bootstrap-3.4.1-dist/js/bootstrap.min.js' %}"></script>
</body>
</html>